package cn.keniykey.mc.landterritory.event;

import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;

import cn.keniykey.mc.landterritory.land.api.Land;

public final class LandUpdateDataEvent extends Event{
	private static final HandlerList handlers = new HandlerList();
	
	@Override
	public HandlerList getHandlers() {
		return handlers;
	}
	public static HandlerList getHandlerList() {
		return handlers;
	}
	
	private final Player player;
	private final Land land;
	
	public LandUpdateDataEvent(Player player,Land land) {
		super(!Bukkit.isPrimaryThread());
		this.player = player;
		this.land = land;
	}
	
	public Player getPlayer() {
		return this.player;
	}
	public Land getLand() {
		return this.land;
	}
}